Skip to content

feat: capture project activities at PIN terminals - #60

Merged
patrickschiller merged 3 commits into
mainfrom
codex/terminal-activity-capture
Dec 3, 2026
Merged

patrickschiller merged 3 commits into
mainfrom
codex/terminal-activity-capture

Conversation

@patrickschiller

@patrickschiller patrickschiller commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Implements PIN terminal activity tracking from Discussion #39. Quantity tracking remains open in #66.

  • Manage a project activity catalog and optionally enable activity selection per PIN terminal.
  • Choose a project before an activity, switch activities without gaps, and clock out with one tap after PIN authentication. Activity segments share attendance and break accounting.
  • Keep service orders and activity catalogs mutually exclusive for new entries. Preserve existing project records and booking history.
  • Allow authorized corrections without changing booking times. Show the catalog activity or existing free text in customer reports and CSV exports.

The local OpenClockwork 2.3.0 test stack passed 714 PostgreSQL API integration tests, 528 unit tests, and 8 Chromium tests. The browser suite covers both catalog restrictions, PIN stamping, a gapless project switch, and both customer CSV exports.

Follow the local PIN test guide to reproduce the flows with synthetic data.

Co-authored-by: patrickschiller <39913537+patrickschiller@users.noreply.github.com>
Signed-off-by: Patrick Schiller <39913537+patrickschiller@users.noreply.github.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T22:27:09.643393Z 4b19d2a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4b19d2aff9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

projectName: r.project?.name ?? null,
orderNo: r.serviceOrder?.orderNo ?? null,
orderTitle: r.serviceOrder?.title ?? null,
activity: r.activity,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include catalog activity names in ERP exports

For entries booked with a catalog activity at a PIN terminal, the booking path sets activityId but leaves the legacy activity field null. Consequently, /api/erp/timeentries exports a null activity even though the employee selected one; catalog-only corrections likewise export null or stale free text. Include catalogActivity in the query and resolve its name before falling back to r.activity, as the project report now does, so ERP consumers receive the recorded work description.

Useful? React with 👍 / 👎.

Add project-first selection, preserve terminal pause accounting and historical reports, and make project activity catalogs and service orders mutually exclusive for new entries.

Signed-off-by: Patrick Schiller <p@trickschiller.de>
Signed-off-by: Patrick Schiller <p@trickschiller.de>
@patrickschiller
patrickschiller merged commit fbeb947 into main Dec 3, 2026
5 checks passed
@patrickschiller
patrickschiller deleted the codex/terminal-activity-capture branch December 3, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant